package cn.melonlib.cores.commons.comp.dao;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class DatabaseConfig {

    @Value("${jdbc.driver-class-name}")
    private String driver;

    @Value("${jdbc.url}")
    private String url;

    @Value("${jdbc.username}")
    private String username;

    @Value("${jdbc.password}")
    private String password;

    @Value("${hibernate.dialect}")
    private String dialect;

    @Value("${hibernate.show-sql}")
    private String showSql;

    @Value("${hibernate.format-sql}")
    private String formatSql;

    @Value("${jdbc.connection-timeout}")
    private String connectionTimeout;

    @Value("${jdbc.idle-timeout}")
    private String idleTimeout;

    @Value("${jdbc.max-lifetime}")
    private String maxLifetime;

    @Value("${jdbc.minimum-idle}")
    private String minimumIdle;

    @Value("${jdbc.maximum-pool-size}")
    private String maximumPoolSize;
}
